package com.example.fx.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.base.entity.GetOrderDetail
import com.example.fx.R
import com.example.fx.utils.GlideUtils

class OrderAdapter:BaseQuickAdapter<GetOrderDetail,BaseViewHolder>(R.layout.item_order) {
    override fun convert(holder: BaseViewHolder, item: GetOrderDetail) {
        GlideUtils.loadImage(context,item.image,holder.getView(R.id.image))
        holder.setText(R.id.name,item.productName)
        holder.setText(R.id.count,"X ${item.payNum}")
    }
}